<template>
	<view>
	    <!-- <web-view :webview-styles="webviewStyles" :src="weburl" ></web-view> -->
		<web-view :src="weburl" ></web-view>
	</view>
</template>

<script>
export default {
	data(){
		return{
			result:'',
			token:'',
			weburl:'',
		}
	},
	onLoad(ID) {
		this.token = ID.token
		this.result = ID.result

		this.weburl = this.result + '&token=' + this.token + '&result=' + this.result;

	},
	// onReady() {
	// 	var currentWebview = this.$scope.$getAppWebview().children()[0];
	// 	currentWebview.addEventListener("loaded", function(){
	// 		currentWebview.evalJS(
	// 		"$(\"ul.fed-part-rows a[href*='resource.i847.cn']\").parent().hide();"
	// 		);
	// 	});
	// },
	onBackPress(options) {
		if (options.from === 'backbutton') {
				this.back();
				return true;
		}
	},
	methods:{
		back() {
			uni.redirectTo({
				url: '../home'
			})
		},
	}
}
</script>

<style>

</style>
